﻿namespace EC3_6CLH.Model
{
    /// <summary>
    /// 报警服务
    /// </summary>
    public class GlobalAlarmService
    {
        private bool _isAlarmActive;

        public void TriggerAlarm()
        {
            // 记录Log
            if (_isAlarmActive)
            {
                return;
            }
            _isAlarmActive = true;
            // 拉高报警IO
        }

        public void ResetAlarm()
        {
            if (!_isAlarmActive)
            {
                return;
            }
            _isAlarmActive = false;

            // 关闭报警
        }
    }
}